home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 418_04 / rasmol.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-02  |  1.5 KB  |  90 lines

  1. #/* rasmol.h
  2.  * RasMol2 Molecular Graphics
  3.  * Roger Sayle, February 1994
  4.  * Version 2.3
  5.  */
  6.  
  7. #ifndef True
  8. #define True  1
  9. #define False 0
  10. #endif
  11.  
  12. #define Real double
  13. #define Byte unsigned char
  14.  
  15. #ifndef PI   /* Avoid Linux Warnings! */
  16. #define PI   3.14159265358979323846
  17. #endif
  18.  
  19. #ifdef __STDC__
  20. #define Char signed char
  21. #else
  22. #define Char char
  23. #endif
  24.  
  25. #ifdef _LONGLONG
  26. #define Long int
  27. #define Card unsigned int
  28. #else
  29. #define Long long
  30. #define Card unsigned long
  31. #endif
  32.  
  33.  
  34. #define AbsFun(a)    (((a)<0)? -(a) : (a))
  35. #define MinFun(a,b)  (((a)<(b))? (a) : (b) )
  36. #define MaxFun(a,b)  (((a)>(b))? (a) : (b) )
  37.  
  38. #define EIGHTBIT
  39. /* #define DIALBOX */
  40. /* #define PROFILE */
  41. /* #define TERMIOS */
  42. /* #define MITSHM  */
  43. #define INVERT
  44. #define ISQRT
  45. #define IBMPC
  46.  
  47.  
  48. #ifdef EIGHTBIT
  49. #define Pixel    Byte
  50. #else
  51. #define Pixel    Long
  52. #endif
  53.  
  54. #ifndef IBMPC
  55. #define _fmalloc  malloc
  56. #define _ffree    free
  57. #define __huge
  58. #define __far
  59. #endif
  60.  
  61.  
  62. #define ItemCount       6
  63. #define AdvPickAtom    0
  64. #define AdvPickNumber   1
  65. #define AdvSelectCount  2
  66. #define AdvName        3
  67. #define AdvIdent        4
  68. #define AdvClass    5
  69.  
  70.  
  71. #ifndef RASMOL
  72. #ifdef __STDC__
  73. void WriteChar( int );
  74. void WriteString( char* );
  75. void RasMolFatalExit( char* );
  76. void AdviseUpdate( int );
  77. void RefreshScreen();
  78. void RasMolExit();
  79.  
  80. #else /* non-ANSI C compiler */
  81. void WriteChar();
  82. void WriteString();
  83. void RasMolFatalExit();
  84. void RefreshScreen();
  85. void AdviseUpdate();
  86. void RasMolExit();
  87.  
  88. #endif
  89. #endif
  90.